package javabase.schoolwork.day5_26;

/**
 * @author fance
 * @date 2018/5/26 20:27
 */
public class LoginDemo {
    public static boolean login(String name,String password) {
        return name.equals("hello") && password.equals("NONGDA");
    }
    public static void main(String[] args) {
        if (login(args[0],args[1])) {
            System.out.println("欢迎登录");
        } else {
            System.out.println("登录失败");
        }
    }
}
